#ifndef _IM_SERVER_CHECK_TICKE_TASK_H_
#define _IM_SERVER_CHECK_TICKE_TASK_H_

#include <string>
#include "http_request.h"
#include "rpc_thread_manager.h"

namespace imserver {

using apache::thrift::concurrency::Runnable;

class CheckTicketTask : public Runnable {
 public:
  CheckTicketTask(HttpRequestPtr request, 
      int64_t qid,
      const std::string & qid_ticket,
      const std::string & q_ticket,
      const std::string & t_ticket) 
    : request_(request), qid_(qid), qid_ticket_(qid_ticket)
    , q_ticket_(q_ticket), t_ticket_(t_ticket) {}
  virtual void run();
 private:
  HttpRequestPtr request_;

  int64_t qid_;
  std::string qid_ticket_;

  std::string q_ticket_;
  std::string t_ticket_;
};

}

#endif // _IM_SERVER_CHECK_TICKE_TASK_H_

